# -*- coding: utf-8 -*-
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_debugtoolbar import DebugToolbarExtension
from flask_mail import Mail
from flask_cache import Cache

# from .auth.models import User
import conf

app = Flask(__name__)
app.config.from_object(conf)

db = SQLAlchemy(app)
login_manager = LoginManager()
login_manager.init_app(app)
mail = Mail(app)
cache = Cache(app, config={'CACHE_TYPE': app.config['CACHE_TYPE']})
toolbar = DebugToolbarExtension(app)

from .forum import views
from .auth import views
from utils import custom_filters
